<!DOCTYPE html>
<html>
<head>
	<title>Detail Admin - Tables showcase</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- bootstrap -->
    <link href="/css/bootstrap/bootstrap.css" rel="stylesheet" />
    <link href="/css/bootstrap/bootstrap-responsive.css" rel="stylesheet" />
    <link href="/css/bootstrap/bootstrap-overrides.css" type="text/css" rel="stylesheet" />

    <!-- global styles -->
    <link rel="stylesheet" type="text/css" href="/css/layout.css" />
    <link rel="stylesheet" type="text/css" href="/css/elements.css" />
    <link rel="stylesheet" type="text/css" href="/css/icons.css" />
    <link rel="stylesheet" type="text/css" href="/css/bootstrap/bootstrapValidator.min.css" />

    <!-- libraries -->
    <link href="/css/lib/font-awesome.css" type="text/css" rel="stylesheet" />
    
    <!-- this page specific styles -->
    <link rel="stylesheet" href="/css/compiled/tables.css" type="text/css" media="screen" />
	
	
    <!--[if lt IE 9]>
      <script src="/http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    
	<!-- scripts -->
    <script src="/js/jquery-latest.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <script src="/js/theme.js"></script>
    <script src="/js/bootstrapValidator.js"></script>
    <script src="/js/fuelux.wizard.js"></script>
    <script type="text/JavaScript" src="/My97DatePicker/WdatePicker.js"></script>
    
    
    <link href="/ueditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="ueditor/third-party/jquery.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="/ueditor/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/ueditor/umeditor.min.js"></script>
    <script type="text/javascript" src="/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript" src="/js/tools.js"></script>

    
</head>
<body>
    <!-- navbar -->
    <div class="navbar navbar-inverse">
        <div class="navbar-inner">
            <button type="button" class="btn btn-navbar visible-phone" id="menu-toggler">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="brand" href="/"><img src="/img/logo.png" /></a>

            <ul class="nav pull-right">                
                <li class="dropdown">
                    <a href="" class="" >
                        	<?php 
                        		$session = new \yii\web\Session();
                        		$admin = $session->get('admin');
                        		echo $admin['account'];
                        	?>
                    </a>
                </li>
                <li class="settings hidden-phone">
                    <a href="/index/logout" role="button">
                        <i class="icon-share-alt"></i>
                    </a>
                </li>
            </ul>            
        </div>
    </div>
    <!-- end navbar -->
    <!-- sidebar -->
    <div id="sidebar-nav">
        <ul id="dashboard-menu">
        	<?php foreach ($this->context->left_nav as $item):?>
        	<li>
        		<?php if($item['child']):?>
        		<a class="dropdown-toggle" href="#">
                    <span><?php echo $item['name']?></span>
                    <i class="icon-chevron-down"></i>
                </a>
                <?php foreach ($item['child'] as $childItem):?>
                <ul class="submenu">
                    <li><a href="<?php echo $childItem['url']?>"><?php echo $childItem['name']?></a></li>
                </ul>
                <?php endforeach;?>
        		<?php else:?>
        		<a href="<?php echo $item['url']?>"><?php echo $item['name']?></a>
        		<?php endif;?>
        	</li>
        	<?php endforeach;?>
        </ul>
    </div>
    <!-- end sidebar -->
	
	<!-- main container -->
    <div class="content">
		<?php echo $content;?>
    </div>
    <!-- end main container -->
</body>
</html>